<?php
namespace app\index\controller;

use think\Db;

class Index
{
    public function index()
    {

        $test1=Db::connect("db_config2")->name("leegame")->select();
        dump($test1);exit;
    }

    public function hello($name = 'ThinkPHP5')
    {
        return 'hello,' . $name;
    }
}
